import request from "@/utils/request";

/**
 *获取权限点列表
 */
export const getPermissionListService = () => request.get("/sys/permission");
/**
 * 新增权限点
 */
export const addPermissionService = (data) => {
  return request.post("/sys/permission", data);
};
/**
 * 修改权限点
 */
export const updatePermissionService = (data) => {
  return request.put(`/sys/permission/${data.id}`, data);
};
/**
 * 删除权限点
 */
export function deletePermissionService(id) {
  return request.delete("/sys/permission/" + id);
}
